import React from 'react'
import { gql, useQuery } from '@apollo/client';


const AccountGql = gql`
    query Account($id: ID!) {
        account(id: $id) {
            id
            username
            password
        }
    }
`;
export const Page2: React.FC = () => {
    const {  data } = useQuery(AccountGql, {
        variables: {
            id: 1
        }
    });
    console.log(data, '查询结果');
    return <div>根据条件来查询</div>
}
